#ifndef FILEMANAGER_H
#define FILEMANAGER_H

#include "element.h"
#include "scene.h"

class FileManager : public QObject
{
    Q_OBJECT
public:
    FileManager(Scene *scene);
    void setSpinner(QSpinBox *spinner);
public slots:
    void load();
    void save();
private:
    Scene *scene;
    QSpinBox *spinner;
    QString declaration(Element *element);
    QString butLast(QString);
};

#endif // FILEMANAGER_H
